<?php

if (function_exists('ini_set'))
{

	ini_set('html_errors', TRUE);
	ini_set('display_startup_errors', 1);
	ini_set('display_errors', 1);
}



/**
 * check development mode.
 */
error_reporting(E_ALL);

/**
 * define fatal type
 * @var int
 */
define('NUO_ERROR', E_ERROR | E_CORE_ERROR | E_USER_ERROR | E_COMPILE_ERROR | E_RECOVERABLE_ERROR | E_PARSE);

/**
 * define warning type
 * @var int
 */
define('NUO_WARNING', E_WARNING | E_CORE_WARNING | E_USER_WARNING | E_COMPILE_WARNING);

/**
 * @var int
 */
define('NUO_NOTICE', E_ALL & NUO_WARNING & NUO_ERROR);

/**
 * @var string
 */
define('NUO_CHARSET', 'UTF8');

/**
 * @var float
 */
define('NUO_START_TIME', microtime(1));

/**
 * @var int
 */
define('NUO_START_MEMORY', memory_get_usage(TRUE));

/**
 * @var string
 */
define('ROOT_DIR', dirname(dirname(dirname(__FILE__))));

/**
 * @var string
 */
define('SETTING_DIR', ROOT_DIR . '/application/setting/');

/**
 * @var string
 */
define('LEGACY_DIR', ROOT_DIR . '/legacy/');

/**
 * @var string
 */
define('MODULE_DIR', ROOT_DIR . '/application/module/');

/**
 * @var string
 */
define('LIBRARY_DIR', ROOT_DIR . '/application/library/');

/**
 * @var string
 */
define('CLASS_DIR', ROOT_DIR . '/application/library/classes/');

/**
 * @var string
 */
define('PUBLIC_DIR', ROOT_DIR . '/public/');

/**
 * @var string
 */
define('TEMPORARY_DIR', ROOT_DIR . '/temporary/');

/**
 * @var bool
 */
define('NO_CACHE', FALSE);

/**
 * @var string
 */
define('NO_LOG', FALSE);

/**
 * @var bool
 */
define('PROFILLING', 2);

/**
 * @var bool
 */
define('LOG_DELAY', 0);

/**
 * IS GUEST
 */
define('USER_GUEST_LEVEL_ID', 7);

/**
 * DEFINE PRIVACY CONST
 */
define('PRIVACY_PUBLIC', 0);
define('PRIVACY_FRIENDS', 1);
define('PRIVACY_FRIENDS_OF_FRIENDS', 2);
define('PRIVACY_PRIVATE', 3);
define('PRIVACY_LISTS', 4);
define('PRIVACY_NETWORKS', 5);
